package com.jiangjiang.eshop.promotion.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName PromotionActivityGoodsRelationEntity
 * @Description 销售活动和商品关联表
 * @Author jhw
 * @Date 2021/7/29 9:28
 * @Version 1.0
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("promotion_activity_goods_relation")
public class PromotionActivityGoodsRelationEntity {
    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 促销活动ID
     */
    @TableField("promotion_activity_id")
    private Long promotionActivityId;

    /**
     * 关联的商品id,如果为-1则表示关联全部商品
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
